<template>
  <div>
    <div class="Content-title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom"
          v-for="it of weekend"
          :key="it.id">
        <div class="item-img-box">
          <img class="item-img"
               :src="it.imgUrl"
               alt="" />
        </div>
        <div class="item-info">
          <p class="info-title">{{it.title}}</p>
          <p class="info-desc">{{it.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekend: Array
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixins.styl'
.Content-title
  line-height: 0.8rem
  background: #eee
  text-indent: 0.2rem
.item-img-box
  overflow: hidden
  height: 0
  width: 100%
  padding-bottom: 37.09%
.item-img
  width: 100%
.item-info
  padding: 0.1rem
  .info-title
    line-height: 0.54rem
    font-size: 0.32rem
    ellipsis()
  .info-desc
    margin-top: 0.05rem
    line-height: 0.4rem
    color: #ccc
    ellipsis()
</style>
